/**
 * @Author: szh
 * @Date: 2019/10/15
 * @Last Modified by:   szh
 * @Last Modified time: 2019-10-15 16:41:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 下表查询
export const getDowns = params => axios.get(`${SERVER.CYXDMS_CLUE}/customersBasicinfo/customerBusiness/queryFailCustomerBusiness`, { params });

// 回访记录
export const getRecords = params => axios.get(`${SERVER.CYXDMS_CLUE}/customersBasicinfo/cuCustomerVisit/queryVisitRecord`, { params });

// 激活
export const saveActive = (id,taskId) => axios.post(`${SERVER.CYXDMS_CLUE}/customersBasicinfo/cuCustomerVisit/activeCustomerBusiness/${id}/${taskId}`);

// 保存回访信息
export const saveFeedback = params => axios.post(`${SERVER.CYXDMS_CLUE}/customersBasicinfo/cuCustomerVisit/saveCustomerVisit`, params);

// 获得问卷
export const getQuestionnaire = params => axios.get(`${SERVER.CYXDMS_CLUE}/customersBasicinfo/cuCustomerVisit/queryQuestionInfoById`, {params});

// 获得转介绍客户
export const queryReferralsCustomers = params => axios.get(`${SERVER.CYXDMS_CLUE}/customersBasicinfo/cuCustomerVisit/queryReferralsCustomers`,{params});

// 获取失效基盘
export const queryInvalidBasePlate = params => axios.get(`${SERVER.CYXDMS_CLUE}/customersBasicinfo/cuCustomerVisit/queryInvalidBasePlate`,{params});

// 激活失效基盘
export const activationBasePlate = params => axios.post(`${SERVER.CYXDMS_CLUE}/customersBasicinfo/cuCustomerVisit/activationBasePlate`,params);
